Skip to main content

How to Setup NSSM

Setting up NSSM to Auto-start Caddy

Downloads

NSSM

1.Please add Caddy and NSSM to your enviroment variables shown here

  1. Open an administrative powershell

image

  1. Type commmand below to register a service
nssm install Caddy
  1. Now it will show NSSM GUI

image

  1. Configure like below

image

Path= Your Caddy.exe (IE C:\Tools\Caddy\caddy.exe)

Startup Directory= Your Root Caddy folder (IE C:/Tools/Caddy)

Arguments= this will be the command your run to start caddy in the background

(IE run --config Caddyfile)

When done it should look like this

image

  1. Now Select Install Service

  2. Start the service in the administrative powershell by running

nssm start caddy

(so if you name it something else in the nssm install myappname it will be nssm install sonarr to setup in nssm gui and nssm start sonarr to auto start the service)

  1. You can check to see if its running succesful by typing
nssm status Caddy
  1. To restart it
nssm restart Caddy
  1. To stop the service
nssm stop Caddy

"Buy Me A Coffee"